.topnav {
  width: 100%;
  height: 53px;
  background-color: #333333;

  ul {
    display: flex;
    width: 1240px;
    margin: 0 auto;
    height: 53px;
    padding-left: 640px;
    justify-content: flex-end;
    align-items: center;

    li {
      display: list-item;

      &:hover a {
        color: #27ba9b;
      }

      a {
        color: #cdcdcd;
        font-size: 14px;

        &:hover i {
          color: #27ba9b;
        }

        i {
          font-family: 'icomoon';
          font-style: normal;
          /* 让倾斜的不倾斜 */
          color: #ccc;
          font-size: 13px;
        }
      }
    }
  }
}

.navbar {
  width: 100%;
  height: 132px;

  // background-color: pink;
  .container {
    display: flex;
    position: relative;
    width: 1240px;
    margin: 0 auto;
    height: 132px;

    .logo {
      width: 200px;
      height: 100%;
      background: url(../images/logo.png) no-repeat center 18px / contain;
    }

    .nav_title {
      flex: 1;
      height: 132px;

      ul {
        display: flex;
        height: 32px;
        margin: 50px auto;

        li {
          flex-grow: 1;
          height: 32px;
          margin: 4px auto;
          flex-direction: column;

          &:hover .hidden {
            display: block;
          }

          >a {
            display: block;
            float: left;
            width: 32px;
            height: 32px;
            font-size: 16px;
            color: #111;

            &:hover {
              color: #27bb9a;
              border-bottom: 1px solid #27bb9a;
            }
          }

          .hidden {
            display: none;
            position: absolute;
            width: 100%;
            height: 115px;
            left: 0;
            top: 100px;
            background-color: #fff;
            box-shadow: 0px -1px 5px 0px rgba(51, 51, 51, 0.55);
            z-index: 10000;
            .hidden-item{
              width: 100%;
              height: 100%;
              // display: flex;
              a{
                float: left;
                width: 125px;
                height: 118px;
                color: #333;
                font-size: 14px;
                text-align: center;
                &:hover{
                  color: #27bb9a;
                }
                img{
                  width: 80px;
                  height: 80px;
                }
              }
            }
          }
        }
      }
    }

    .search {
      width: 170px;
      height: 132px;
      // line-height: 132px;
      // display: flex;
      position: relative;

      .search_container {
        position: absolute;
        width: 170px;
        height: 32px;
        line-height: 25px;
        top: 0px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        margin: auto;
        border-bottom: 1px solid #e7e7e7;

        i {
          font-size: 20px;
          color: #858585;
        }

        input {
          width: 145px;
          height: 28px;
          outline: none;
          border: 0;
          font-size: 14px;
        }
      }
    }

    .cart {
      width: 50px;
      height: 132px;
      line-height: 32px;
      text-align: center;
      position: relative;
      display: block;

      // background-color: royalblue;
      .curr {
        position: absolute;
        width: 50px;
        height: 32px;
        top: 0px;
        left: 0px;
        bottom: 0px;
        right: 0px;
        margin: auto;

        i {
          font-size: 26px;
          color: #858585;
        }
      }
    }
  }
}

.nav_swiper {
  width: 100%;
  height: 500px;
  background-color: #f5f5f5;

  .content {
    width: 1240px;
    height: 100%;
    overflow: hidden;
    background-color: pink;

    .swiper {
      width: 100%;
      height: 100%;

      &:hover .swiper-button-next {
        display: block;
      }

      &:hover .swiper-button-prev {
        display: block;
      }
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .swiper-button-prev {
      margin-left: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
      display: none;
      width: 44px;
      height: 44px;
      background: rgba(0, 0, 0, 0.2);
      color: #fff;
      border-radius: 50%;
      text-align: center;
      line-height: 44px;
    }

    .home-category {
      position: relative;
      width: 250px;
      height: 500px;
      background-color: #32302f;
      opacity: 90%;
      top: 0;
      margin-top: -500px;
      float: left;
      z-index: 1000;

      .menu {
        width: 250px;
        padding: 0;

        >li {
          padding-left: 42px;
          height: 50px;
          line-height: 50px;

          &:hover {
            background-color: #27ba9b;
          }

          &:hover .product-hiddden {
            display: block;
          }

          >a {
            color: #fff;
            margin-right: 4px;
            font-size: 15px;
            background-color: transparent;
            outline: none;

            &:first-child {
              font-size: 18px;
              padding-right: 5px;
            }
          }
        }
      }

      .product-hiddden {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        margin-left: 250px;
        width: 990px;
        height: 500px;
        background-color: #f9fbfb;
        color: #f9fbfb;
        // opacity: 100%;

        h3 {
          display: inline-block;
          color: #000;
          font-weight: 400;
          padding-top: 15px;
          padding-left: 13px;
        }

        span {
          color: #666666;
        }

        .contenter {
          width: 990px;

          ul {
            padding-left: 0;
            padding-top: 15px;
            width: 100%;
            height: 430px;

            a {
              position: relative;
              // display: inline-block;
              float: left;
              width: 310px;
              height: 120px;
              margin-left: 13px;
              margin-bottom: 20px;
              background-color: #fff;
              border: 1px solid #27ba9b;

              &:hover {
                background-color: #e3f9f4;
              }

              li {
                position: absolute;
                height: 95px;
                padding: 12px;

                img {
                  height: 95px;
                }

                span {
                  position: absolute;
                  width: 185px;
                  margin-left: 10px;
                  font-size: 17px;
                  padding: 0;
                  line-height: 1.3;
                  color: #666666;
                }

                .small {
                  color: #999999;
                  width: 185px;
                  font-size: 15px;
                  margin-left: 10px;
                  line-height: 7.4;
                }

                .price {
                  color: #cf4444;
                  width: 185px;
                  font-size: 22px;
                  margin-left: 10px;
                  line-height: 6.2;
                }
              }
            }
          }
        }
      }
    }
  }
}

.home-panel {
  width: 100%;
  height: auto;

  .container {
    width: 1240px;
    height: 541px;

    // background-color: hotpink;
    .head {
      position: relative;
      height: 115px;
      padding: 40px 0;
      display: flex;
      align-items: flex-end;

      // background-color: indianred;
      h3 {
        flex: 1;
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
      }

      small {
        flex: 1;
        position: absolute;
        font-size: 16px;
        color: #999;
        left: 12%;
      }

      a {
        font-size: 16px;
        color: #999;
      }
    }

    .list {
      position: relative;
      height: 426px;

      ul {
        display: flex;
        justify-content: space-between;
        padding: 0;

        li {
          display: list-item;
          width: 306px;
          height: 406px;
          background: #f0f9f4;
          transition: all 0.5s;

          &:hover {
            margin-top: -5px;
            box-shadow: 0 10px 50px rgba(51, 51, 51, 0.55);
          }

          img {
            width: 306px;
            height: 306px;
            vertical-align: middle;
          }

          a {
            color: #000;
          }

          .name {
            font-size: 22px;
            padding: 12px 30px 0 30px;
            text-align: center;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }

          .price {
            color: #cf4444;
            font-size: 22px;
            padding: 12px 30px 0 30px;
            text-align: center;
          }

          .desc {
            color: #999;
            font-size: 18px;
            padding-top: 12px;
            text-align: center;
          }
        }
      }
    }
  }
}

.home-hot {
  width: 100%;
  height: 460px;
  background: #f5f5f5;

  .container {
    width: 1240px;
    height: 541px;

    .head {
      position: relative;
      height: 115px;
      padding: 40px 0;
      display: flex;
      align-items: flex-end;

      h3 {
        flex: 1;
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
      }

      small {
        flex: 1;
        position: absolute;
        font-size: 16px;
        color: #999;
        left: 12%;
      }

      .swiper-button-prev {
        position: absolute;
        right: 0;
        bottom: 0;
        margin-right: 45px;
      }

      .swiper-button-next,
      .swiper-button-prev {
        width: 20px;
        height: 20px;
        background: #27ba9b;
        color: #fff;
        text-align: center;
        line-height: 44px;
        margin-top: 1px;
      }
    }

    .box {
      // display: flex;
      width: 100%;
      height: 345px;
      // overflow: hidden;
      padding-bottom: 40px;

      .swiper {
        width: 100%;
        height: 310px;
      }

      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        // border: 1px solid #858585;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        cursor: pointer;
      }

      .swiper-slide img {
        display: block;
        width: 100%;
        height: 310px;
        object-fit: cover;
      }
    }
  }
}

//home-new
.home-new {
  width: 100%;
  height: 495px;
  background: #f5f5f5;
  margin-top: 50px;

  .container {
    width: 1240px;
    height: 541px;

    .head {
      position: relative;
      height: 115px;
      padding: 40px 0;
      display: flex;
      align-items: flex-end;

      h3 {
        flex: 1;
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
      }

      a {
        font-size: 16px;
        color: #999;
      }
    }

    .special-list {
      height: 380px;
      padding-bottom: 20px;
      display: flex;
      justify-content: space-between;

      .special-item {
        width: 404px;
        background: #fff;
        transition: all .5s;

        &:hover {
          margin-top: -5px;
          box-shadow: 0 10px 50px rgba(51, 51, 51, 0.55);
        }

        a {
          display: block;
          width: 100%;
          height: 288px;
          position: relative;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }

          .meta {
            background-image: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 50%);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 288px;

            .title {
              position: absolute;
              bottom: 0;
              left: 0;
              padding-left: 16px;
              width: 70%;
              height: 70px;

              .top {
                color: #fff;
                font-size: 22px;
                display: block;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
              }

              .sub {
                display: block;
                font-size: 19px;
                color: #999;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
              }
            }

            .price {
              position: absolute;
              bottom: 25px;
              right: 16px;
              line-height: 1;
              padding: 4px 8px 4px 7px;
              color: #cf4444;
              font-size: 17px;
              background-color: #fff;
              border-radius: 2px;
            }
          }
        }

        .foot {
          height: 72px;
          line-height: 72px;
          padding: 0 20px;
          font-size: 16px;

          .like {
            float: left;
            height: 72px;
            line-height: 72px;
            padding: 0 10px;
            font-size: 16px;

            i {
              display: inline-block;
              width: 15px;
              height: 14px;
              margin-right: 5px;
              color: #999;
            }
          }

          .view {
            float: left;
            margin-right: 25px;
            vertical-align: middle;

            i {
              display: inline-block;
              width: 15px;
              height: 14px;
              margin-right: 5px;
              color: #999;
            }
          }

          .reply {
            float: right;
            vertical-align: middle;
            margin-right: 5px;
            i {
              display: inline-block;
              width: 15px;
              height: 14px;
              margin-right: 10px;
              color: #999;
            }
          }
        }
      }
    }
  }
}

// footer
.footer {
  height: 638px;
  width: 100%;

  // background-color: aqua;
  .footer-up {
    display: flex;
    width: 1240px;
    height: 290px;
    padding: 60px 0 40px 25px;

    // background-color: blueviolet;
    dl {
      height: 190px;
      text-align: center;
      padding: 0 63px;
      border-right: 1px solid #f2f2f2;
      color: #999;

      &:first-child {
        padding-left: 0;
      }

      &:last-child {
        padding-right: 0;
        border-right: 0px solid #f2f2f2;
      }

      &:last-child dd {
        display: block;
        height: 30px;
        line-height: 30px;
        width: 190px;
        float: unset;
        margin: 0;
        padding: 0;
        margin-right: 10px;
        border: 0;
      }

      &:last-child dt {
        margin-bottom: 50px;
        margin-right: 10px;
      }

      dt {
        line-height: 1;
        font-size: 18px;

      }

      dd {
        margin: 36px 12px 0 0;
        float: left;
        width: 92px;
        height: 92px;
        padding-top: 10px;
        text-align: center;
        border: 1px solid #ededed;

        &:hover i {
          color: #27ba9b;
        }

        i {
          display: block;
          font-size: 30px;
          margin-top: 12px;
          margin-bottom: 5px;
        }

        img {
          width: 72px;
          height: 72px;
        }

        span {
          display: block;
          font-size: 14px;
        }

        .tip {
          display: block;
          width: 92px;
          height: 34px;
          line-height: 34px;
          border-radius: 5%;
          margin-top: 6px;
          font-size: 14px;
          color: #fff;
          background-color: #27ba9b;
        }

        .phone {
          font-size: 18px;
          font-weight: bold;
          color: #666666;

        }

        small {
          font-size: 16px;

        }
      }

    }
  }

  .footer-down {
    width: 100%;
    height: 348px;
    background-color: #333333;

    .slogan {
      width: 1240px;
      height: 178px;
      line-height: 58px;
      padding: 60px 30px;
      border-bottom: 1px solid #434343;
      display: flex;
      justify-content: space-between;

      // background-color: violet;
      a {
        height: 58px;
        line-height: 58px;
        color: #fff;
        font-size: 28px;
        padding: 0 50px;

        i {
          font-size: 50px;
          vertical-align: middle;
          margin-right: 10px;
          font-weight: 100;
        }

        span {
          vertical-align: middle;
          text-shadow: 0 0 1px #333;
        }
      }
    }

    .copyright {
      height: 170px;
      padding-top: 40px;
      text-align: center;
      color: #999;
      font-size: 15px;

      p {
        line-height: 1;
        margin-bottom: 20px;

        a {
          color: #999;
          line-height: 1;
          padding: 0 10px;
          border-right: 1px solid #999;
        }
      }
    }
  }
}